package com.xb.cloud.product.service.business.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xb.cloud.product.merchant.service.client.bo.CategoryBo;
import com.xb.cloud.product.service.business.model.Category;
import com.xb.cloud.product.service.business.model.CategoryExample;

public interface CategoryMapper {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

	/**
	 * 根据categoryExample 查询类目bo列表； 
	 * @param categoryExample
	 * @return
	 */
	List<CategoryBo> selectCategoryBoListByExample(CategoryExample categoryExample);
}